/* Copyright (c) 2004-2024 Peigen.info. All rights reserved. */

package info.peigen.hotpot.component.gateway.socket.config;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Inject;

import java.io.Serializable;

/**
 * <b>(SocketGatewayProperties)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/8/23
 */
@Data
@Component
@FieldDefaults(level = AccessLevel.PRIVATE)
public class SocketGatewayProperties implements Serializable {
    /** 配置前缀 */
    public static final String PREFIX = "hotpot.gw.socket.";
    @Inject("${" + PREFIX + "port:19099}")
    Integer port;
    @Inject("${" + PREFIX + "enable:false}")
    boolean enable;
    @Inject("${" + PREFIX + "beanName:null}")
    String  beanName;
    @Inject("${" + PREFIX + "processorName:null}")
    String  processorName;
}